<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script type="text/javascript">
<!--
// 若搜索框不为空 回车后搜索
document.onkeydown = function(event) {
	e = event ? event : (window.event ? window.event : null);
	if (e.keyCode == 13) {
		var basePath = "<%=basePath%>";
		var keyword = document.getElementById("keyword_search").value;
		if(keyword != null && keyword != "") {
			window.location.href=basePath+"shop/product/list.shtml?keyword="+encodeURI(keyword);
		}
	}
}
//-->
</script>
<div class="head-main wp">
	<div class="logo">
		<a href="<%=basePath%>index.htm"><img src="<%=basePath%>skin/images/logo.png" /></a>
	</div>
	<div class="search-warp">
		<div class="search-input-warp">
			<input class="search-input" name="keyword" type="text" value="输入关键字"
				onfocus="if(value=='输入关键字') {value=''}"
				onblur="if (value=='') {value='输入关键字'}" id="keyword_search" />
		</div>
		<a class="search_btn" href="javascript:void(0)" id="img_search">搜索</a>
		<div class="search-tips">
			<ul>
				<!-- 
				<li>限时半价</li>
				<li>下单有礼</li>
				<li>星球约战</li>
				<li>红酒节</li>
				<li>满减领券30</li> 
				-->
			</ul>
		</div>
	</div>
	<div class="contact-num">
		<img src="<%=basePath%>skin/images/contact-num.png" />
	</div>
</div>